package com.Dao;

import com.pojo.FindBook;
import com.pojo.FindRemark;

import java.sql.SQLException;
import java.util.List;

public interface FindBookDao {
List<FindBook> findBooksByAuthor(String key,String flag);
    List<FindBook> findAllBooks();
    List<FindBook> findByTypeAndLimit(String type,Integer limit);
    FindBook findBookById(String bookId);

    List<FindRemark> findBookCommentPage(String bookId, Integer pageNum, Integer pageSize,String time);

    Long findBookCommentCount(String bookId);
}
